<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/x-icon" href="/favicon.png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>ToDo App</title>
</head>
<body class="bg-stone-100">
	<header class="max-w-lg py-4 mx-auto mt-5 font-thin text-center">
    <h1 class="font-sans text-7xl text-rose-700">~ todos ~</h1>
  </header>
  <nav
  id="todo-nav"
  class="flex items-center justify-center gap-3 py-2 filters"
  role="navigation"
  >
    <a
      href="#/"
      class="p-1 underline underline-offset-4 decoration-rose-800 decoration-2"
      role="button"
    >
      All
    </a>
    <a
      href="#/active"
      class="p-1"
      role="button"
    >
      Active
    </a>
    <a
      href="#/completed"
      class="p-1"
      role="button"
    >
      Completed
    </a>
  </nav>
  
  <main class="max-w-lg mx-auto font-thin bg-white divide-y shadow-md">
  <!-- Todo list will go here -->
    <input
      id="new-todo"
      placeholder="What needs to be done?"
      autofocus
      class="w-full p-4 text-2xl italic outline-none focus:outline-offset-0 focus:outline-rose-700"
    />
    <section
      id="todo-list"
      class="flex flex-col w-full text-xl font-normal divide-y"
    >
      <!-- Todos will go here -->
      <div class="p-4 todo-item">
        <div class="todo-text">Buy milk</div>
        <input class="hidden todo-edit" value="Buy milk" />
      </div>
      <div class="p-4 todo-item">
        <div class="todo-text">Buy bread</div>
        <input class="hidden todo-edit" value="Buy bread" />
      </div>
    </section>

    <section
      id="todo-actions"
      class="flex justify-between p-4 text-sm text-gray-600"
    >
      <span id="todo-count">2 items left</span>
      <button id="mark-all-completed" aria-label="Mark all tasks as completed">
        Mark all as complete
      </button>
      <button id="clear-completed" aria-label="Clear completed tasks">
        Clear completed
      </button>
    </section>
  </main>

  <footer
  class="flex flex-col items-center justify-center max-w-lg mx-auto mt-10 text-xs text-gray-500 font-extralight"
  >
    <div>Click to complete a todo</div>
    <div>Double-click to edit a todo</div>
  </footer>
	<!-- Scripts here. Don't remove ↓ -->
	<script type="module" src="/src/main.js"></script>
</body>
</html>